import { IsNotEmpty } from 'class-validator'
import { checkPassword } from 'src/custom-valid/checkPassword'

export class UpdatePassword {
   @IsNotEmpty({ message: '请输入旧密码' })
   oldPassword: string
   @IsNotEmpty({ message: '请输入新密码' })
   @checkPassword({ message: '两次密码一样' })
   newPassword: string
}
